var kMsg = "Do you wish to install "+kDisplayName+" to your profile?\n\nClick OK to install to your profile.\n\nClick Cancel if you want to install globally.";
initInstall(kName, kPackage, kVersion);
var chromef = getFolder("chrome");
var pchromef = getFolder("Profile", "chrome");
var existsInApp = File.exists(getFolder(chromef, kJarFile));
var existsInProfile = File.exists(getFolder(pchromef, kJarFile));
var instToProfile = !existsInApp && (existsInProfile || confirm(kMsg));
var folder = instToProfile ? pchromef : chromef;
var flag = instToProfile ? PROFILE_CHROME : DELAYED_CHROME;
var err = addFile(kPackage, kVersion, 'chrome/' + kJarFile, folder, null)